<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试vue</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
    <input id="myInput" type="text" value="1000">
    <button onclick="changeInputValue()">修改值</button>
    <script>
      /*  var person = new Object();
        person.username="chenjian"
        person.age=20;
        console.log(person)*/
       /* var personJson='{"username":"chenjian","age":20}';*/
       /* console.log(personJson)*/
        //将json字符串转换成json对象
       /* console.log(JSON.parse(personJson))*/
            var  personJson={"username":"chenjian","age":20}
        //将json对象转换成json字符串
            console.log(JSON.stringify(personJson))
            function changeInputValue() {
                document.getElementById("myInput").value=3000;
            }
    </script>
</body>
</html>
